package main

import (
	"fmt"
	
)
func main() {
// 	s1 := []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"} 
// s2 := s1[3:8]      //3<=index<8   len:8-3=5 , cap:10-3=7
// s3 := s1[5:7]     //5<=index<7   len:7-5=2 , cap:10-5=5
// s4 := s1[4:10]   //4<=index<10  len:10-4=6 , cap:10-4=6
// s2 = append(s2, "ijk")
// fmt.Println(s1)
// fmt.Println(s2)
// fmt.Println(s3)
// fmt.Println(s4)
var sRunes []rune
for _, r := range "hello, world" {
 sRunes = append(sRunes, r)
}
// ['h' 'e' 'l' 'l' 'o' ',' ' ' 'w' 'o' 'r' 'l' 'd']
fmt.Printf("append []rune%q\n", sRunes)

}
